<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>薪资实付明细管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/paypaymentdetails/paydayPaymentDetails/">薪资实付明细列表</a></li>
		<li class="active"><a href="${ctx}/paypaymentdetails/paydayPaymentDetails/form?id=${paydayPaymentDetails.id}">薪资实付明细<shiro:hasPermission name="paypaymentdetails:paydayPaymentDetails:edit">${not empty paydayPaymentDetails.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="paypaymentdetails:paydayPaymentDetails:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="paydayPaymentDetails" action="${ctx}/paypaymentdetails/paydayPaymentDetails/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">国家id：</label>
			<div class="controls">
				<sys:treeselect id="office" name="office.id" value="${paydayPaymentDetails.office.id}" labelName="office.name" labelValue="${paydayPaymentDetails.office.name}"
					title="部门" url="/sys/office/treeData?type=2" cssClass="required" allowClear="true" notAllowSelectParent="true"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业编号：</label>
			<div class="controls">
				<form:input path="company.id" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">员工编号：</label>
			<div class="controls">
				<form:input path="emploee.id" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">统计时间：</label>
			<div class="controls">
				<input name="genDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
					value="<fmt:formatDate value="${paydayPaymentDetails.genDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">qt合计：</label>
			<div class="controls">
				<form:input path="qtTotal" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">统计时间段：</label>
			<div class="controls">
				<form:input path="genDateStr" htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">qt_工资：</label>
			<div class="controls">
				<form:input path="qtWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">假期工时：</label>
			<div class="controls">
				<form:input path="holidaysHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">假期工资：</label>
			<div class="controls">
				<form:input path="holidaysWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">标准工时：</label>
			<div class="controls">
				<form:input path="standardHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">节假日工时：</label>
			<div class="controls">
				<form:input path="legalHolidaysHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪年假：</label>
			<div class="controls">
				<form:input path="paidAnnualLeaveHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪病假：</label>
			<div class="controls">
				<form:input path="paidSickLeaveHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">调休时间：</label>
			<div class="controls">
				<form:input path="tuneOffHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">丧假：</label>
			<div class="controls">
				<form:input path="funeralLeaveHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">产假：</label>
			<div class="controls">
				<form:input path="maternityLeaveHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">其它假期：</label>
			<div class="controls">
				<form:input path="otherHolidaysHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">1.25倍工资：</label>
			<div class="controls">
				<form:input path="qtQuarterWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">1.5倍工资：</label>
			<div class="controls">
				<form:input path="qtHalfWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">2倍工资：</label>
			<div class="controls">
				<form:input path="qtTwoWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">平时工资：</label>
			<div class="controls">
				<form:input path="standardWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">2.5倍工资：</label>
			<div class="controls">
				<form:input path="qtTwoPointTwoFiveWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">3倍工资：</label>
			<div class="controls">
				<form:input path="qtThreeWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">假期工资：</label>
			<div class="controls">
				<form:input path="legalHolidaysWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪年假工资：</label>
			<div class="controls">
				<form:input path="paidAnnualLeaveWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪病假工资：</label>
			<div class="controls">
				<form:input path="paidSickLeaveWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪调休工资：</label>
			<div class="controls">
				<form:input path="tuneOffWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪丧假工资：</label>
			<div class="controls">
				<form:input path="funeralLeaveWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">带薪产假工资：</label>
			<div class="controls">
				<form:input path="maternityLeaveWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">其它假期工资：</label>
			<div class="controls">
				<form:input path="otherHolidaysWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">1.25倍工时：</label>
			<div class="controls">
				<form:input path="qtQuarterHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">1.5倍工资工时：</label>
			<div class="controls">
				<form:input path="qtHalfHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">2倍工资工时：</label>
			<div class="controls">
				<form:input path="qtTwoHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">2.5倍工资工时：</label>
			<div class="controls">
				<form:input path="qtTwoPointTwoFiveHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">3倍工资工时：</label>
			<div class="controls">
				<form:input path="qtThreeHours" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">应支付总工资：</label>
			<div class="controls">
				<form:input path="totalWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">时薪标准：</label>
			<div class="controls">
				<form:input path="hourlyStandard" htmlEscape="false" class="input-xlarge required number"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">增值税率：</label>
			<div class="controls">
				<form:input path="vatRate" htmlEscape="false" class="input-xlarge required number"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实际支付工资：</label>
			<div class="controls">
				<form:input path="actuPayWages" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">雇主成本：</label>
			<div class="controls">
				<form:input path="employerCost" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">employer_cost_rmb：</label>
			<div class="controls">
				<form:input path="employerCostRmb" htmlEscape="false" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="paypaymentdetails:paydayPaymentDetails:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>